﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportExpress.aspx.cs" Inherits="FL.WebUI.ReportList.ReportExpress" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <title>客户登记表打印</title>
     <script src="../Scripts/grfs_js/CreateControl.js"></script>
     <script src="../Scripts/grfs_js/GRInstall.js"></script>
      <script type="text/javascript">
          Install_InsertReport();
          function window_onload() {
              //开启报表生成进度条显示
              ReportViewer.Report.ShowProgressUI = true;

              //启动运行
              ReportViewer.Start();
          }
          //Install_InsertReport();
          //var EmployeeEduReport;
          //var ProductReport;
          //var Top10CustomerReport;
          //var Top10ProductReport;

          //在网页初始加载时向报表提供数据
          //function window_onload() {
          //    EmployeeEduReport = ReportViewer.Report.ControlByName("srEmployeeEdu").AsSubReport.Report;
          //    //关联事件
          //    EmployeeEduReport.OnInitialize = OnEmployeeEduInitialize;
          //    //开启报表生成进度条显示
          //    ReportViewer.Report.ShowProgressUI = true;
          //    //启动运行
          //    ReportViewer.Start();
      
          //}

   

    <%--      function OnEmployeeEduInitialize() {
              //载入子报表数据
              EmployeeEduReport.LoadDataFromURL("../Hr/PrintEdu?id=<%=Request["id"]%>");
          }--%>

          //function OnTop10CustomerInitialize() {
          //    //载入子报表数据
          //    Top10CustomerReport.LoadDataFromURL("xmlTop10Customer.aspx");
          //}

          //function OnTop10ProductInitialize() {
          //    //载入子报表数据
          //    Top10ProductReport.LoadDataFromURL("xmlTop10Product.aspx");
          //}

    </script>
        <style type="text/css">
        html,body {
            margin:0;
            height:100%;
        }
    </style>
</head>
<body style="margin:0"  onload="window_onload()">
     <script type="text/javascript" >
         var Installed = Install_Detect();
         CreatePrintViewerEx("99%", "800px", "../Grfs/Express.grf?id=" + Date.now, "../Report/Print?id=<%=Request["id"]%>", true,
       "<param name=EditMode value=2>");
    //     CreatePrintViewerEx("99%", "800px", "../Grfs/ht_employee.grf?id=" + Date.now, "2.txt", true,
    //"<param name=EditMode value=2>");
    </script>
</body>
</html>
